import { IsString, MaxLength, MinLength, IsEmail, IsMobilePhone } from 'class-validator'

export class RigisterDto {
    @IsString()
    @MinLength(3)
    @MaxLength(8)
    name: string;

    @IsMobilePhone()
    phone: string;

    @IsEmail()
    email: string;

    @IsString()
    @MinLength(8)
    @MaxLength(16)
    password: string;
}